package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Tel      string `gorm:"type:char(11)"`
	Password string `gorm:"type:varchar(32)"`
}

type Image struct {
	gorm.Model
	Title   string `gorm:"type:varchar(60)"`
	Content string `gorm:"type:text"`
	Img     string `gorm:"type:varchar(225)"`
	UserId  int    `gorm:"type:int"`
	User    User   `gorm:"foreignerKey:UserId"`
}
